import 'package:flutter_taotaoshipin/generated/json/base/json_convert_content.dart';
import 'package:flutter_taotaoshipin/model/interact_user_sign_in_detail_entity.dart';

InteractUserSignInDetailEntity $InteractUserSignInDetailEntityFromJson(
    Map<String, dynamic> json) {
  final InteractUserSignInDetailEntity interactUserSignInDetailEntity = InteractUserSignInDetailEntity();
  final int? mid = jsonConvert.convert<int>(json['mid']);
  if (mid != null) {
    interactUserSignInDetailEntity.mid = mid;
  }
  final String? cdate = jsonConvert.convert<String>(json['cdate']);
  if (cdate != null) {
    interactUserSignInDetailEntity.cdate = cdate;
  }
  final int? ctime = jsonConvert.convert<int>(json['ctime']);
  if (ctime != null) {
    interactUserSignInDetailEntity.ctime = ctime;
  }
  final int? days = jsonConvert.convert<int>(json['days']);
  if (days != null) {
    interactUserSignInDetailEntity.days = days;
  }
  return interactUserSignInDetailEntity;
}

Map<String, dynamic> $InteractUserSignInDetailEntityToJson(
    InteractUserSignInDetailEntity entity) {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['mid'] = entity.mid;
  data['cdate'] = entity.cdate;
  data['ctime'] = entity.ctime;
  data['days'] = entity.days;
  return data;
}

extension InteractUserSignInDetailEntityExtension on InteractUserSignInDetailEntity {
  InteractUserSignInDetailEntity copyWith({
    int? mid,
    String? cdate,
    int? ctime,
    int? days,
  }) {
    return InteractUserSignInDetailEntity()
      ..mid = mid ?? this.mid
      ..cdate = cdate ?? this.cdate
      ..ctime = ctime ?? this.ctime
      ..days = days ?? this.days;
  }
}